import request from "./http";

// 搜索
// https://api.ecook.cn/pub/recipe/synthesize/search/v2
export function getSearchData(keyword){
    return request({
        url:`pub/recipe/synthesize/search/v2`,
        method:"post",
        data:{
            "keyword": keyword,
            "orderType": "collectNum",
            "page": 0,
            "searchType": "2",
            "size": 10
        }
    })
}
//热门搜索
//https://api.ecook.cn/public/getHotSearchKeywords.shtml
export function getHotSearchKeywordsData(){
    return request({
        url:"public/getHotSearchKeywords.shtml?type=recipe",
        method:"get",
    })
}
//热门搜索
//https://api.ecook.cn/pub/search/recommend
export function getHotSearchrecommendData(keyword){
    return request({
        url:`pub/search/recommend?searchKeyword=${keyword}`,
        method:"get",
    })
}